<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of IntranetController
 *
 * @author cshepherd
 */
class IntranetController extends Controller {
    public function index() {
        $vars = array();        
        $this->view->show('login', 'intranet', $vars);
    }

    public function home(){
        if(isset ($_SESSION['usuario_autenticado'])){
            $vars = array();
            $this->view->show('home', 'intranet', $vars);
        }else{
            $vars['validate_form'] = "<div id='msn_operacion_false'><div style='padding-left:30px;'>No ha ingresado su usuario.</div></div>";
            $this->view->show('login', 'intranet', $vars);
        }
    }
}
?>
